package arithmetic.classLoaderTest;

/**
 * Created by jiangfeng on 2017/10/15.
 */
public class TestClassLoad {
    public static void main(String[] args) {
        ClassLoader classLoader= ClassLoader.getSystemClassLoader();
        System.out.println(classLoader);
        while(null != classLoader){

            classLoader = classLoader.getParent();
            System.out.println(classLoader);
        }
    }
// 输出结果： 系统加载器，扩展加载器，根加载器
//	sun.misc.Launcher$AppClassLoader@18b4aac2
//	sun.misc.Launcher$ExtClassLoader@45ee12a7
//	null
}
